﻿@model AgileUploaderField.Settings.AgileUploaderFieldSettings

<fieldset>
    <label for="@Html.FieldIdFor(m => m.MaxWidth)">@T("Limit size")</label>
    @T("Width") @Html.EditorFor(m => m.MaxWidth, new { @class = "text" }) x @T("Height") @Html.EditorFor(m => m.MaxHeight, new { @class = "text" })

    @Html.ValidationMessageFor(m => m.MaxWidth)
    @Html.ValidationMessageFor(m => m.MaxHeight)
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.FileLimit)">@T("Limit number of files")</label>
    @Html.EditorFor(m => m.FileLimit, new { @class = "text"})
    <span class="hint">@T("The maximum number of files allowed to be uploaded")</span>
</fieldset>
<fieldset>
	@Html.CheckBoxFor(m => m.AuthorCanSetAlternateText) <label class="forcheckbox" for="@Html.FieldIdFor(m => m.AuthorCanSetAlternateText)">@T("Author can set alternate text")</label>  
	<span class="hint">@T("If checked, the author can set the alternate text. If no text is defined, the file name will be used.")</span>
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.Hint)">@T("Help text")</label>
    @Html.TextAreaFor(m => m.Hint, new { @class = "textMedium", rows = "5" } )
    <span class="hint">@T("The help text is written under the field when authors are editing the content item.")</span>
    @Html.ValidationMessageFor(m => m.Hint)
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.MediaFolder)">@T("Media folder")</label>
    @Html.TextBoxFor(m => m.MediaFolder, new { @class = "textMedium" })
	<span class="hint">@T("The name of the media folder where the files will be saved. You can also use these tokens: {content-type}, {field-name}, {content-item-id}, {user-id}.")</span>
</fieldset>
